package com.kitty.action;

import javax.servlet.http.*;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

public class TimeBasedAccessInterceptor extends HandlerInterceptorAdapter {
	 private int openingTime;
	    private int closingTime;

	    public void setOpeningTime(int openingTime) {
	        this.openingTime = openingTime;
	    }

	    public void setClosingTime(int closingTime) {
	        this.closingTime = closingTime;
	    }

	    public boolean preHandle(
	            HttpServletRequest request,
	            HttpServletResponse response,
	            Object handler) throws Exception {

	    	System.out.println("interceptorAA...");
	    	
	         return true;
	    }

}
